GET Statistics?deviceids[0]={deviceids[0]}&deviceids[1]={deviceids[1]}&start={start}&end={end}
Get Private/Business mileage statistics for a list of devices.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
deviceids |
Array of Internal Id to the Device. |
Collection of integer |
Required |
start |
Start of daterange to search in. |
integer |
Required |
end |
End of daterange to search in. |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
A YearTotalRestResult object.
YearTotalRestResultName | Description | Type | Additional information |
---|---|---|---|
Begin | date |
None. |
|
End | date |
None. |
|
TotalPrivateKM | decimal number |
None. |
|
TotalBusinessKM | decimal number |
None. |
|
TripCountPrivate | integer |
None. |
|
TripCountBusiness | integer |
None. |
|
BusinessDurationInMinutes | decimal number |
None. |
|
PrivateDurationInMinutes | decimal number |
None. |
|
DeviceId | integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "Begin": "2025-01-05T02:45:45.03957+01:00", "End": "2025-01-05T02:45:45.03957+01:00", "TotalPrivateKM": 3.1, "TotalBusinessKM": 4.1, "TripCountPrivate": 5, "TripCountBusiness": 6, "BusinessDurationInMinutes": 7.1, "PrivateDurationInMinutes": 8.1, "DeviceId": 9 }
application/xml, text/xml
Sample:
<YearTotalRestResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Api360.Models"> <Begin>2025-01-05T02:45:45.03957+01:00</Begin> <BusinessDurationInMinutes>7.1</BusinessDurationInMinutes> <DeviceId>9</DeviceId> <End>2025-01-05T02:45:45.03957+01:00</End> <PrivateDurationInMinutes>8.1</PrivateDurationInMinutes> <TotalBusinessKM>4.1</TotalBusinessKM> <TotalPrivateKM>3.1</TotalPrivateKM> <TripCountBusiness>6</TripCountBusiness> <TripCountPrivate>5</TripCountPrivate> </YearTotalRestResult>